<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%--
  Created by IntelliJ IDEA.
  User: Lemon
  Date: 2020/6/11
  Time: 14:39
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta charset="utf-8">
    <title>用户信息</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/static/layui/css/layui.css"  media="all">
    <style type="text/css">
        .layui-form-item{
            margin-top: 16px;
            margin-left:60px;
            font-size: 16px;
        }
        .layui-input{
            border: none;
        }
    </style>
</head>
<body>


<form class="layui-form"  lay-filter="myform">
    <div style="width: 99.8%;height:35px;line-height:35px;border: 1px #f1f1f1 solid;background-color: #f5f5f5;" ><span style="margin-left: 28px;">基本资料</span></div>

    <div class="layui-form-item" style="margin-top: 15px;">
        <label class="layui-form-label">用户名：</label>
        <div class="layui-input-inline" style="width: 320px">
            <input type="text" class="layui-input" name="account" readonly="readonly" value="${user.account}"/>
        </div>
    </div>
    <hr>
    <div class="layui-form-item">
        <label class="layui-form-label">真实姓名：</label>
        <div class="layui-input-inline" style="width: 250px;">
            <input type="text" class="layui-input" name="real_name" readonly="readonly" value="${user.real_name}"/>
        </div>
        <label class="layui-form-label" style="margin-left: 150px;">手机号码：</label>
        <div class="layui-input-inline" style="width: 250px;">
            <input type="text" name="phone_number" class="layui-input" readonly="readonly" value="${user.phone_number}"/>
        </div>
    </div>
    <hr>
    <div class="layui-form-item">
        <label class="layui-form-label">电子邮箱：</label>
        <div class="layui-input-inline" style="width: 250px;">
            <input type="text" name="email" class="layui-input" readonly="readonly" value="${user.email}" />
        </div>
        <label class="layui-form-label" style="margin-left: 150px;">职位：</label>
        <div class="layui-input-inline" style="width: 250px;">
            <input type="text" name="role_name" class="layui-input" readonly="readonly" value="${user.role_name}"/>
        </div>
    </div>
    <hr>
    <div class="layui-form-item">
        <label class="layui-form-label">创建时间：</label>
        <div class="layui-input-inline" style="width: 250px;">
            <input type="text" name="create_time" class="layui-input" readonly="readonly" value="<fmt:formatDate value="${user.create_time}" pattern="yyyy-MM-dd HH:mm:ss"/>" />
        </div>
        <label class="layui-form-label" style="width:130px;margin-left: 100px;">上一次登陆时间：</label>
        <div class="layui-input-inline" style="width: 250px;">
            <input type="text" name="last_login_time" class="layui-input" readonly="readonly" value="<fmt:formatDate value="${user.last_login_time}" pattern="yyyy-MM-dd HH:mm:ss"/>"/>
        </div>
    </div>
</form>
</body>
<script src="${pageContext.request.contextPath}/static/layui/layui.js" charset="utf-8"></script>
<script>
    layui.use(['element','jquery','layer','form','laydate','layedit'], function() {
        var $ = layui.jquery
            ,element = layui.element;
        var layer = layui.layer;
        var form = layui.form;
        var laydate = layui.laydate;

    });
</script>
</html>